package com.caac.core.dm;

import com.caac.core.config.Config;
import com.caac.core.config.ViewProperty;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright caac 2006</p>
 * <p>Company: caac</p>
 * @author <a href="mailto:project@caac.com.cn">Project Group</a>
 * @version 1.0
 */

public class ViewProp extends Prop {
	private static final long serialVersionUID = 1L;
	private ViewProperty vp;

    public String getLabel() {
        return getProperty().getLabel();
    }
    public String getOrdcol() {
        return getProperty().getOrdcol();
    }

    private ViewProperty getProperty() {
        if (vp == null) {
            vp = Config.getInstance().getView(getGroupName()).getChild(
                    getPropName());
        }
        return vp;
    }
}
